/*
 * HealSort.java
 *
 * Created on January 12, 2008, 2:44 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.lct.eq2.data;

import java.util.Comparator;

/**
 *
 * @author Kris
 */
public class HealSort implements Comparator {
    
    /** Creates a new instance of HealSort */
    public HealSort() {
    }
    
    public int compare(Object o1, Object o2) {
        int rval = 0;
        if (((Combatant)o1).getTotalHealingDone() > ((Combatant)o2).getTotalHealingDone()) {
            rval = -1;
        } else {
            rval = 1;
        }
        return rval;
    }
    
}
